class RemoveStateComplaint < ActiveRecord::Migration
  def self.up
    #Eliminar la bendita columna complaint_state que no tiene naa q ver
    remove_column :cultural_heritage_collections, :complaint_state

    #Nombre correcto
    add_column :cultural_heritage_collections, :state, :integer

    #java style: add_column(:cultural_heritage_collections, :state, :integer);
  end

  def self.down
    add_column :cultural_heritage_collections, :complaint_state, :integer

    remove_column :cultural_heritage_collections, :state
  end
end
